<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>用户积分记录</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li>用户积分记录</li></ul>
    </div>
    
    <div class="rightinfo">
	    <div class="tools">
	        <ul class="toolbar1">
	        	<form action="/user/score/scores.html" method="post">
		        	<span>
		        		<select class="select3" name="change" style="width: 100px;">
						    <option value="">请选择</option>
						    <option value="-" <#if (score.change)?? && score.change = "-">selected="selected"</#if>>扣减</option>
						    <option value="+" <#if (score.change)?? && score.change = "+">selected="selected"</#if>>增加</option>
					    </select>
		        		<!-- 
		        		<input name="changeReasonCode" class="scinput" type="text" value="${(score.changeReasonCode)!""}" autocomplete="off" placeholder="增减原由编码，便于统计">
		        		<input name="changeReasonDesc" class="scinput" type="text" value="${(score.changeReasonDesc)!""}" autocomplete="off" placeholder="积分增减说明，如注册赠送，购物赠送">
		        		 -->
		        		<input name="userId" class="scinput" type="text" value="${(score.userId)!""}" autocomplete="off" placeholder="用户ID">
		        		<input name="userName" class="scinput" type="text" value="${(score.userName)!""}" autocomplete="off" placeholder="用户名">
				    	<input type="submit" class="scbtn" value="查询"/>
		        	</span>
	    		</form>
	        </ul>
	    </div>
        
    	<table class="tablelist">
	    	<thead>
		    	<tr>
			        <th width="15%">用户名称</th>
			        <th width="20%">时间</th>
			        <th width="17%">之前积分</th>
			        <th width="15%">变化</th>
			        <th width="13%">之后积分</th>
			        <th width="15%">说明</th>
		        </tr>
	        </thead>
	        <tbody>
	        <#if scores??>
			  		<#list scores as item>
						<tr>
					        <td>${(item.userName)!"--"}</td>
					        <td><#if item.createTime?exists>${(item.createTime)?string("yyyy-MM-dd HH:mm:ss")}<#else>--</#if></td>
					        <td>${(item.scoreBefor)!"--"}&ensp;分</td>
					        <td>${(item.change)!""}&nbsp;${(item.scoreChange)!""}&ensp;分</td>
					        <td>${(item.scoreAfter)!"--"}&ensp;分</td>
					        <td>${(item.changeReasonDesc)!"--"}</td>
				        </tr> 
			  		</#list>
			  	</#if>
	        </tbody>
	    </table>
   		<#import "/common/pager.ftl" as page>
		<#if count??>
			<@page.pager start=start size=size count=count url="/user/score/scores.html?t=admin" gotoPage=true />
		</#if>
	</body>
	<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
	<script type="text/javascript" src="/js/commonList.js"></script>
	<script type="text/javascript">
		/** 删除的URL地址前缀，在commonList.js里面调用的删除方法会用到 */
		var delUrl = "/user/score";
	</script>
</html>